export default class BizMaterialController {
  static list(sender, params, axiosOption, httpOption) {
    return sender.doUrl(
      'admin/biz/material/findByCondition',
      'post',
      params,
      axiosOption,
      httpOption
    );
  }
  static edit(sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/biz/material/edit', 'post', params, axiosOption, httpOption);
  }
  static findById(sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/biz/material/findById', 'get', params, axiosOption, httpOption);
  }

  static uploadMaterial(sender, params) {
    return sender.upload('admin/biz/material/upload', params);
  }

  static findByFront(sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/biz/material/findByFront', 'post', params, axiosOption, httpOption);
  }

  static logicDelete(sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/biz/material/logic/delete', 'post', params, axiosOption, httpOption);
  }
}
